/**
 * @file   SplatexecutorFilter.java
 * @date   2012-11-7上午9:29:33
 * @author User
 */
package com.gzceb.zhgjj.mina;

import org.apache.mina.filter.executor.ExecutorFilter;

/**
 * <p>线程池设置类。</p>
 *
 * @date   2012-11-7上午9:29:33 
 * @author liqing
 * @description 
 */
public class SplatexecutorFilter extends ExecutorFilter {
	
	private int DEFAULT_MAX_POOL_SIZE;
    private int BASE_THREAD_NUMBER;
    private long DEFAULT_KEEPALIVE_TIME;
    private boolean MANAGEABLE_EXECUTOR;
    private boolean NOT_MANAGEABLE_EXECUTOR;
    
    SplatexecutorFilter(){
      setDEFAULT_MAX_POOL_SIZE(16);
      setBASE_THREAD_NUMBER(0);
      setDEFAULT_KEEPALIVE_TIME(30L);
      setMANAGEABLE_EXECUTOR(true);
      setNOT_MANAGEABLE_EXECUTOR(false);
    }

	/**
	 * @return the dEFAULT_MAX_POOL_SIZE
	 */
	public int getDEFAULT_MAX_POOL_SIZE() {
		return DEFAULT_MAX_POOL_SIZE;
	}

	/**
	 * @param dEFAULT_MAX_POOL_SIZE the dEFAULT_MAX_POOL_SIZE to set
	 */
	public void setDEFAULT_MAX_POOL_SIZE(int dEFAULT_MAX_POOL_SIZE) {
		DEFAULT_MAX_POOL_SIZE = dEFAULT_MAX_POOL_SIZE;
	}

	/**
	 * @return the bASE_THREAD_NUMBER
	 */
	public int getBASE_THREAD_NUMBER() {
		return BASE_THREAD_NUMBER;
	}

	/**
	 * @param bASE_THREAD_NUMBER the bASE_THREAD_NUMBER to set
	 */
	public void setBASE_THREAD_NUMBER(int bASE_THREAD_NUMBER) {
		BASE_THREAD_NUMBER = bASE_THREAD_NUMBER;
	}

	/**
	 * @return the dEFAULT_KEEPALIVE_TIME
	 */
	public long getDEFAULT_KEEPALIVE_TIME() {
		return DEFAULT_KEEPALIVE_TIME;
	}

	/**
	 * @param dEFAULT_KEEPALIVE_TIME the dEFAULT_KEEPALIVE_TIME to set
	 */
	public void setDEFAULT_KEEPALIVE_TIME(long dEFAULT_KEEPALIVE_TIME) {
		DEFAULT_KEEPALIVE_TIME = dEFAULT_KEEPALIVE_TIME;
	}

	/**
	 * @return the mANAGEABLE_EXECUTOR
	 */
	public boolean isMANAGEABLE_EXECUTOR() {
		return MANAGEABLE_EXECUTOR;
	}

	/**
	 * @param mANAGEABLE_EXECUTOR the mANAGEABLE_EXECUTOR to set
	 */
	public void setMANAGEABLE_EXECUTOR(boolean mANAGEABLE_EXECUTOR) {
		MANAGEABLE_EXECUTOR = mANAGEABLE_EXECUTOR;
	}

	/**
	 * @return the nOT_MANAGEABLE_EXECUTOR
	 */
	public boolean isNOT_MANAGEABLE_EXECUTOR() {
		return NOT_MANAGEABLE_EXECUTOR;
	}

	/**
	 * @param nOT_MANAGEABLE_EXECUTOR the nOT_MANAGEABLE_EXECUTOR to set
	 */
	public void setNOT_MANAGEABLE_EXECUTOR(boolean nOT_MANAGEABLE_EXECUTOR) {
		NOT_MANAGEABLE_EXECUTOR = nOT_MANAGEABLE_EXECUTOR;
	}
}
